﻿<Window 
	x:Class="Scratch.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:converters="clr-namespace:Granite.Xaml.Converters;assembly=Granite.Xaml"
    xmlns:local="clr-namespace:Scratch"
	Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Granite.Xaml;component/ConvertersList.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <local:Lights x:Key="Baz"/>
        </ResourceDictionary>
    </Window.Resources>
    <StackPanel>
        <TextBlock Text="aaaa" Visibility="{Binding Bar,Converter={StaticResource NotZeroToVisibleConverter}}" />
        <TextBlock Text="bbbb" Visibility="{Binding Bar,Converter={converters:NotZeroToVisibleConverter}, ConverterParameter=Hidden}" />
        <TextBlock Text="cccc" Visibility="{Binding Bar,Converter={StaticResource ZeroToVisibleConverter}}" />
        <TextBlock Text="{Binding Bar, Converter={StaticResource DictionaryConverter}, ConverterParameter={StaticResource Baz}}" />
        <Button Click="Button_Click" Content="Switch"/>
    </StackPanel>
</Window>
